//package com.czkt.config;
//
//
//import com.czkt.filter.AutoFilter;
//import com.czkt.filter.AutoFilter2;
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.core.annotation.Order;
//
//@Configuration
//public class FilterRegister {
//
//    @Bean
//    @Order(1)
//    public FilterRegistrationBean filterRegistrationBean(){
//
//        FilterRegistrationBean registration = new FilterRegistrationBean();
//        registration.setFilter(new AutoFilter());
//        registration.addUrlPatterns("/main");
//        return registration;
//    }
//
//
//    @Bean
//    @Order(2)
//    public FilterRegistrationBean autoFilter2(){
//
//        FilterRegistrationBean registration = new FilterRegistrationBean();
//        registration.setFilter(new AutoFilter2());
//        registration.addUrlPatterns("/main");
//        return registration;
//    }
//}
